package com.xie.o2o.service;

import com.xie.o2o.dto.ShopExecution;
import com.xie.o2o.entity.Shop;
import org.springframework.web.multipart.MultipartFile;

/**
 * @create: xie
 */
public interface ShopService {
    /**
     * 根据shopCondition分页返回相应店铺列表
     *
     * @param shopCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public ShopExecution getShopList(Shop shopCondition, int pageIndex, int pageSize);
    //添加店铺
    ShopExecution addShop(Shop shop, MultipartFile shopImg) throws RuntimeException;
    //根据id获取店铺信息
    Shop getByShopId(Long shopId);
    //更新店铺信息，包括对图片的处理
    ShopExecution modifyShop(Shop shop, MultipartFile shopImg)  throws RuntimeException;
}
